package com.budwk.app.enterprise.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 资产负债类
 */

@Data
@Accessors(chain = true)
@Table("dfxy_enterprise.zb_asset_liability_category")
@Comment("资产负债类")
@ApiModel(description = "资产负债类")
public class AssetLiabilityCategory  extends BaseCommonModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("year_first_inventory")
    @Comment("年初存货")
    @ApiModelProperty(description = "年初存货")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String yearFirstInventory;

    @Column("assets_total")
    @Comment("资产总计")
    @ApiModelProperty(description = "资产总计")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String assetsTotal;

    @Column("accounts_receivable")
    @Comment("其中：应收账款")
    @ApiModelProperty(description = "其中：应收账款")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String accountsReceivable;

    @Column("year_end_inventory")
    @Comment("年末存货")
    @ApiModelProperty(description = "年末存货")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String yearEndInventory;

    @Column("finished_goods")
    @Comment("产成品")
    @ApiModelProperty(description = "产成品")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String finishedGoods;

    @Column("fixed_assets_worth")
    @Comment("固定资产净值")
    @ApiModelProperty(description = "固定资产净值")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String fixedAssetsWorth;

    @Column("fixed_assets_original")
    @Comment("固定资产原值")
    @ApiModelProperty(description = "固定资产原值")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String fixedAssetsOriginal;

    @Column("this_year_depreciation")
    @Comment("本年折旧")
    @ApiModelProperty(description = "本年折旧")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String thisYearDepreciation;

    @Column("liabilities_total")
    @Comment("负债合计")
    @ApiModelProperty(description = "负债合计")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String liabilitiesTotal;
}


